Linux cp command with reflink

cp -pRv --reflink=auto /source/folder /destination/folder

copy files and directories
-p same as –preserve=mode,ownership,timestamps
-R, -r, –recursive
copy directories recursively
-v verbose, show what is going on.

–reflink[=WHEN]
control clone/CoW copies.

This just copied 169GB of files in 20 seconds. This only works on supported filesystems, so for example by “#Btrfs, , 4.2, , , and ”. See here.

Explainshell tells you this.

Leave a Reply

Your email address will not be published. Required fields are marked *